import React from "react";

export default function withLogin(WrappedComponent) {

    return function LoginWrapper(props) {
        if (props.isLogin) {
            return <WrappedComponent {...props} />;
        }
        return null
    }
}
